# /bin/sh

echo "***************** Creat File **********************"

mkdir agvwork
mkdir agvwork/tmp

# ********************* Creat AgvFundation ***************
#mkdir agvwork/AgvFundation
#mkdir agvwork/AgvFundation/fundation
#smkdir agvwork/AgvFundation/fundation/data

# ********************* Creat AgvHmi *********************
mkdir agvwork/AgvHmi
mkdir agvwork/AgvHmi/baseBag
mkdir agvwork/AgvHmi/baseBag/hmiProject
mkdir agvwork/AgvHmi/baseBag/hmiProject/bin
mkdir agvwork/AgvHmi/baseBag/hmiProject/bin/x86
mkdir agvwork/AgvHmi/baseBag/hmiProject/lib
mkdir agvwork/AgvHmi/baseBag/hmiProject/lib/x86
mkdir agvwork/AgvHmi/baseBag/hmiProject/data
mkdir agvwork/AgvHmi/baseBag/hmiProject/resources
mkdir agvwork/AgvHmi/baseBag/hmiProject/fonts
mkdir agvwork/AgvHmi/baseBag/hmiProject/language

echo "****************** Copy lib*.so *********************"
cp /agvwork/AgvHmi/baseBag/hmiProject/lib/x86/* ./agvwork/AgvHmi/baseBag/hmiProject/lib/x86
cp cmd.sh ./agvwork/AgvHmi/baseBag/hmiProject/lib/x86

echo "****************** Copy hmiMain **********************"
cp -rf /agvwork/AgvHmi/baseBag/hmiProject/bin/x86/hmiMain ./agvwork/AgvHmi/baseBag/hmiProject/bin/x86
cp -rf hmi.sh ./agvwork/AgvHmi/baseBag/hmiProject/bin/x86

echo "****************** Copy Fonts ************************"
cp -rf simhei.ttf ./agvwork/AgvHmi/baseBag/hmiProject/fonts

echo "****************** Copy AgvHmi data ******************"
cp -rf /agvwork/AgvHmi/baseBag/hmiProject/data/* ./agvwork/AgvHmi/baseBag/hmiProject/data

echo "****************** Copy AgvHmi resources *************"
cp -rf /agvwork/AgvHmi/baseBag/hmiProject/resources/* ./agvwork/AgvHmi/baseBag/hmiProject/resources

echo "****************** Copy Language *********************"
cp -rf /agvwork/AgvHmi/baseBag/hmiProject/language/*.qm ./agvwork/AgvHmi/baseBag/hmiProject/language

echo "****************** Copy rcs & ros ********************"
cp -rf rcS ./agvwork/tmp
cp -rf ros ./agvwork/tmp

echo "****************** ZIP All ***************************"
zip -r /root/桌面/agvHmiPackage.zip ./agvwork

echo "********************* End ****************************"


